package demo2.state.impl;

import demo2.Order;
import demo2.state.OrderState;
import demo2.Result;

/**
 * 已完成的订单状态
 * @author ZhouWeiBo
 * @create 2022/6/6
 */
public class FinishState extends OrderState {
    @Override
    public Result create(Order order) {
        return new Result("订单已完成，无法继续操作！",false);
    }

    @Override
    public Result waitForPay(Order order) {
        return new Result("订单已完成，无法继续操作！",false);
    }

    @Override
    public Result paySuccess(Order order) {
        return new Result("订单已完成，无法继续操作！",false);
    }

    @Override
    public Result payFail(Order order) {
        return new Result("订单已完成，无法继续操作！",false);
    }

    @Override
    public Result finish(Order order) {
        return new Result("订单已完成，无法继续操作！",false);
    }
}
